package com.bean.newsBang;

import android.app.Activity;
import android.os.Bundle;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.widget.ImageButton;

public class Register extends Activity{
	private ImageButton home,refresh;
	private WebView web;
	static private String uri;
	
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.register);
		findView();
		web.loadUrl(uri);
		web.getSettings().setJavaScriptEnabled(true);
		web.getSettings().setSupportZoom(true);
		web.getSettings().setBuiltInZoomControls(true);
		web.getSettings().setDefaultZoom(WebSettings.ZoomDensity.FAR);
	    
	}
	private void findView(){
		home = (ImageButton)findViewById(R.id.register_homebutton);
	    refresh = (ImageButton)findViewById(R.id.register_renew);
	    web = (WebView)findViewById(R.id.web);
	    
	}
	static public void setUri(String u){
		uri=u;
	}
}
